package com.example.springsecurity.mapper;

import com.example.springsecurity.domain.ChoiceQuestion;
import com.example.springsecurity.domain.ObjectiveItem;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @ClassName ChoiceQuestionMapper
 * @Description TODO
 * @Author lvyongwei
 * @Date 2020-10-10 14:24
 **/
@Mapper
public interface ChoiceQuestionMapper {

    /**
     * 根据实验项目id获取选择题
     * @param projectId
     * @return
     */
    public List<ChoiceQuestion> getChoiceQuestionByProjectId(Integer projectId);

    /**
     * 根据实验项目id获取客观题
     * @param projectId
     * @return
     */
    public List<ObjectiveItem> getObjectiveItem(Integer projectId);
}
